package edu.ynu.se.xiecheng.achitectureclass.service;

import edu.ynu.se.xiecheng.achitectureclass.entity.Shop;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.ynu.se.xiecheng.achitectureclass.entity.vo.Result;

/**
 * @author laruui
 * @since 2023-12-07
 */
public interface ShopService extends IService<Shop> {


    /**
     * 门店数据分页
     *
     * @param current 当前页
     * @param size    页面数据量
     * @param userId  商家id
     * @return json
     */
    Result pageShop(int current, int size, String userId);

    /**
     * 增加新门店
     *
     * @param shop 门店
     * @return json
     */
    Result addNewShop(Shop shop);

}
